﻿namespace Cadcam7Moddel.Model
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.ComponentModel.DataAnnotations;
    [Table("Loaitin")]
    public partial class Loaitin
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public int ID { get; set; }
        [Required(ErrorMessage = "Chưa nhập")]
        public string Ten { get; set; }
        public bool Hienphai { get; set; }
        public virtual ICollection<Tintuc> Tintuc { get; set; }

        public string LangID { get; set; }
        [ForeignKey("LangID")]
        public virtual NgonNgu NgonNgu { get; set; }
    }

}
